/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-07 16:13:34
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-05-31 11:10:08
 * @FilePath: \cxl-driving-training\src\utils\dict-data.ts
 */

export interface optionsInterface {
    label: string
    value: string
    type?: string
}
//颜色类型
export const colorType: { value: string }[] = [
    { value: '#409EFF' },
    { value: '#67C23A' },
    { value: '#E6A23C' },
    { value: '#F56C6C' },
    { value: '#000000' },
    { value: '#303133' },
    { value: '#606266' },
    { value: '#909399' },
    { value: '#A8ABB2' },
    { value: '#C0C4CC' }
]

//场地类别（2.科目二；3.科目三）
export const siteCategory: optionsInterface[] = [
    { value: '2', type: 'success', label: '科目二' },
    { value: '3', type: 'danger', label: '科目三' }
]
//学车类型
export const vehicleType: optionsInterface[] = [
    { value: '1', type: 'success', label: '小车' },
    { value: '2', type: 'danger', label: '摩托车' },
    { value: '3', type: 'info', label: '无人机' }
]

//班别类型
export const classType: optionsInterface[] = [
    { value: '2', type: 'success', label: '钻石班' },
    { value: '1', type: 'danger', label: 'VIP班' },
    { value: '0', type: 'info', label: '普通班' }
]
//性别
export const sexType: optionsInterface[] = [
    { value: '1', type: 'success', label: '男' },
    { value: '2', type: 'warning', label: '女' }
]

//是否自有
export const ownFlag: optionsInterface[] = [
    { value: '1', type: 'success', label: '是' },
    { value: '2', type: 'warning', label: '否' }
]

export const siteType: optionsInterface[] = [
    { value: '1', type: 'success', label: '普通场' },
    { value: '2', type: 'danger', label: '智能场' },
    { value: '3', type: 'info', label: '机器人场' },
    { value: '4', type: 'warning', label: '仿真场' }
]
//
export const channelType: optionsInterface[] = [
    { value: '0', type: 'info', label: '' },
    { value: '1', type: 'success', label: '微信公众号' },
    { value: '2', type: 'danger', label: '抖音小程序' },
    { value: '3', type: 'info', label: 'H5' },
    { value: '4', type: 'warning', label: '微信小程序' }
]
//线索数据来源
export const dataSource: optionsInterface[] = [
    { value: '1', type: 'success', label: '驾校官网' },
    { value: '2', type: 'danger', label: '微信小程序' }
]
//线索系统来源
export const systemSource: optionsInterface[] = [
    { value: '1', type: 'success', label: '斑斑驾道' },
    { value: '2', type: 'danger', label: '车信联' }
]

//支付渠道
export const payPlatform: optionsInterface[] = [
    { value: '1', type: 'success', label: '微信公众号' },
    { value: '2', type: 'danger', label: '抖音小程序' },
    { value: '3', type: 'info', label: '微信H5' },
    { value: '4', type: 'warning', label: '微信小程序' }
]

//支付类型
export const payType: optionsInterface[] = [
    { value: '1', type: 'success', label: '微信支付' },
    { value: '2', type: 'danger', label: '支付宝' },
    { value: '3', type: 'info', label: '抖音支付' }
]

//订单状态(0.待支付；1.已支付；2.已取消；3.已关闭；4.退款中；5.已退款)
export const orderStatus: optionsInterface[] = [
    { value: '0', type: 'danger', label: '待支付' },
    { value: '1', type: 'success', label: '已支付' },
    { value: '2', type: 'info', label: '已取消' },
    { value: '3', type: 'info', label: '已关闭' },
    { value: '4', type: 'warning', label: '退款中' },
    { value: '5', type: 'info', label: '已退款' }
]

//线索跟进状态
export const followStatus: optionsInterface[] = [
    { value: '0', type: 'info', label: '待跟进' },
    { value: '1', type: 'warning', label: '跟进中' },
    { value: '2', type: 'info', label: '已放弃' },
    { value: '3', type: 'danger', label: '待报名' },
    { value: '4', type: 'success', label: '已报名' }
]

//支付类型
export const carType: optionsInterface[] = [
    { value: '1', type: 'success', label: 'C1' },
    { value: '2', type: 'danger', label: 'C2' }
]

//发布状态
export const publishStatus: optionsInterface[] = [
    { value: '0', type: 'info', label: '待发布' },
    { value: '1', type: 'success', label: '已发布' },
    { value: '2', type: 'danger', label: '已撤回' }
]

//内容标签
export const contentTag: optionsInterface[] = [
    { value: '1', type: 'info', label: '推荐' },
    { value: '2', type: 'success', label: '热门' },
    { value: '3', type: 'danger', label: '必看' }
]

// 状态
export const disabledOptions: optionsInterface[] = [
    { value: '-1', label: '全部' },
    { value: '1', label: '禁用' },
    { value: '0', label: '启用' }
]

//场地周边配套
export const siteMating: optionsInterface[] = [
    { value: '1', label: '厕所' },
    { value: '2', label: '休息场地' },
    { value: '3', label: '储物柜' },
    { value: '4', label: '共享单车' },
    { value: '5', label: '餐饮店' },
    { value: '6', label: '商场' },
    { value: '7', label: '便利店' }
]

//内容标签
export const productType: optionsInterface[] = [
    { value: '1', type: 'info', label: 'C1' },
    { value: '2', type: 'success', label: 'C2' },
    { value: '3', type: 'danger', label: '抵扣券' }
]

//字典使用位置
export const dictType: optionsInterface[] = [
    { value: '1', type: 'danger', label: '后台管理' },
    { value: '2', type: 'success', label: '小程序' }
]

export const DICT_DATA = new Map()

DICT_DATA.set('vehicleType', vehicleType)
DICT_DATA.set('classType', classType)
DICT_DATA.set('sex', sexType)
DICT_DATA.set('own', ownFlag)
DICT_DATA.set('ownFlag', ownFlag)
DICT_DATA.set('siteCategory', siteCategory)
DICT_DATA.set('siteType', siteType)
DICT_DATA.set('channelType', channelType)
DICT_DATA.set('payPlatform', payPlatform)
DICT_DATA.set('payType', payType)
DICT_DATA.set('orderStatus', orderStatus)
DICT_DATA.set('carType', carType)
DICT_DATA.set('publishStatus', publishStatus)
DICT_DATA.set('followStatus', followStatus)
DICT_DATA.set('contentTag', contentTag)
DICT_DATA.set('productType', productType)
DICT_DATA.set('dataSource', dataSource)
DICT_DATA.set('systemSource', systemSource)
DICT_DATA.set('dictType', dictType)
